<html>
<body>
<form action="salaryslip.php" method="post">
Name:<input type="text" name="name"/>
Designation:<input type="text" id="design" name="design"/>
<input type="submit" value="submit"/>
</form>
</body>
</html>
<?php

$designation=isset($_REQUEST['design']) ? $_REQUEST['design'] : '' ;
$name=isset($_REQUEST['name']) ? $_REQUEST['name'] : '' ;

switch($designation){
	case "clerk": $salary=15000;
	header("location:process.php?salary=$salary&name=$name");	
	break;
	
	case "officer":$salary=20000;
	header("location:process.php?salary=$salary&name=$name");
	break;
}

?>
